{include file="../../../application/admin/view/public/head" /}
<div class="page-container p10">

    <div class="my-toolbar-box" >
        <blockquote class="layui-elem-quote">
            好评审核列表
        </blockquote>
    </div>
     <form class="layui-form " method="post" id="pageListForm">
         <table class="layui-table" lay-size="sm">
             <thead>
             <tr>
                 <th >序号</th>
                 <th >设备号</th>
                 <th >设备名称</th>
                 <th >影片数目</th>
                 <th >直播数目</th>
                 <th >有效登陆天数</th>
                 <th >好评图片</th>
                 <th >展示状态</th>
                 <th >发放状态</th>
                 <th >极光推送状态</th>
                 <th >操作</th>
             </tr>
             </thead>

             {volist name="list" id="vo"}
             <tr>
                 <td >{$vo.id}</td>
                 <td >{$vo.device_id}</td>
                 <td >{$vo.device_name}</td>
                 <td >{$vo.vod_num}</td>
                 <td >{$vo.zhibo_num}</td>
                 <td >{$vo.reg_days}</td>
                 <td >
                     {$vo.pic|imagePreview}
                 </td>
                 <td >
                     {$vo.is_show===1?"待展示":"已展示"}
                 </td>
                 <td >{$vo.is_rewarded===1?"已发放":"未发放"}</td>
                 <td >{$vo.jpush_status===1?"已推送":"未推送"}</td>
                 <td >
                     {if $vo.is_rewarded!=1 && !empty($vo.pic)}
                     <a class="layui-badge-rim j-ajax" data-href="{:url('adfree?id='.$vo['id'])}" href="javascript:;" title="发放">发放</a>
                     {/if}
                 </td>
             </tr>
             {/volist}
             </tbody>
         </table>

        <div id="pages" class="center"></div>

    </form>
</div>

{include file="../../../application/admin/view/public/foot" /}


<script type="text/javascript">
    var curUrl="{:url('review/needdo',$param)}";
    layui.use(['laypage', 'layer','laydate'], function() {
        var laypage = layui.laypage
                , layer = layui.layer,laydate=layui.laydate;
        laydate.render({
            elem: '#date'
            ,type: 'date'
        });
        laypage.render({
            elem: 'pages'
            ,count: {$total}
            ,limit: {$limit}
            ,curr: {$page}
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj,first){
                if(!first){
                    location.href = curUrl.replace('%7Bpage%7D',obj.curr).replace('%7Blimit%7D',obj.limit);
                }
            }
        });
    });
</script>
</body>
</html>